package dao;

import model.Goods;

import java.util.List;

public interface GoodsManagement {
    //添加商品
    Long register(Goods goods);

    //根据商品id,删除商品
    int delete(Goods goods);

    //根据商品id,修改商品
    int alter(Goods goods, Goods desti, boolean useLike);

    //查询所有商品
    List<Goods> queryALL();

    List<Goods> query(Goods g, boolean sorting, int orderCol, boolean desc, int pageSize, int page, boolean useLike);

    //查询商品
    List<Goods> query(Goods g, int pageSize, int page);

    List<Goods> query(Goods goods);

    List<Goods> query(int pageSize, int page);

    List<Goods> query();


    List<Goods> queryALL(int pageSize, int page);
}
